(function () {
    var url = "http://localhost:81/api"
    $("#btn1").on("click", function () {
        $.ajax({
            type: "post",
            url: url,
            data: {
                type: "register",
                user: $("#user").val(),
                pass: $("#pass1").val()
            },
            success: res => {
                console.log(res)
            }
        })
    })
})()